package com.jishucai.rpc.balance;

import java.util.List;
import java.util.Random;

/**
 * 随机负载均衡
 */
public class RandomLoadBalance implements LoadBalance{
    @Override
    public String choose(List<String> invokers) {
        return invokers.get(new Random().nextInt(invokers.size()));
    }
}
